﻿@model HotelMgr.Models.ChangePasswordModel
<h1>修改密码</h1>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "密码更改不成功。请更正错误并重试。")
    <p>@ViewBag.Success</p>
    <div>
        <div class="editor-label">
            @Html.LabelFor(m => m.OldPassword)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.OldPassword)
            @Html.ValidationMessageFor(m => m.OldPassword)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.NewPassword)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.NewPassword)
            @Html.ValidationMessageFor(m => m.NewPassword)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.ConfirmPassword)
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </div>
        <p>
            <input type="submit" value="修改密码" />
        </p>
    </div>
}